package com.geek.service;

import com.geek.bean.OrderCommentVo;
import com.geek.bean.PageData;
import com.geek.bean.data.OrderDetailData;
import com.geek.bean.data.RequestOrderSubmitData;
import com.geek.bean.data.ResponseCheckoutData;
import com.geek.model.MarketAddress;
import com.geek.model.MarketOrderGoods;

import java.util.Map;

/**
 * @description:
 * @author: yelinbo
 * @date: 2024/06/15 14:05
 **/
public interface OrderService {

    PageData reListData(Integer userId, Short showType, Integer page, Integer limit);

    OrderDetailData getOrderDetail(Integer orderId);

    void saveComment(OrderCommentVo orderCommentVo,Integer userId);

    void cancelOrder(Object orderId);

    void updateRefund(Object orderId);

    void orderDelete(Object orderId);

    void orderConfirm(Object orderId);

    MarketOrderGoods orderGoodsByGoodsIdAndOrderId(Integer orderId, Integer goodsId);
    Map<String, Object> submitOrderMessage(Integer userId, RequestOrderSubmitData requestOrderSubmitData, Integer freightMin, Integer feightValue);

    int insertBySubmitMessage(Integer userId, MarketAddress address, ResponseCheckoutData data, String message);
}
